Return the number of good starting indices